gdk: Remove an unused field
authorMatthias Clasen <mclasen@redhat.com>
Sun, 21 Apr 2019 15:39:35 +0000 (15:39 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 May 2019 20:25:14 +0000 (20:25 +0000)
Spring cleaning. We are not using this field
at all, since we have the input_only boolean.

gdk/gdkinternals.h
gdk/gdksurface.c

index bbfd58cb3726fe3c12edc69a10f005837a4c70ca..bf184215803db1e6e5ab6d4aba3478ad2ce079d2 100644 (file)
@@ -118,19 +118,11 @@ typedef enum
 
 typedef struct _GdkSurfacePaint GdkSurfacePaint;
 
-typedef enum
-{
-  GDK_INPUT_OUTPUT,
-  GDK_INPUT_ONLY
-} GdkSurfaceSurfaceClass;
-
-
 struct _GdkSurfaceAttr
 {
   gint x, y;
   gint width;
   gint height;
-  GdkSurfaceSurfaceClass wclass;
   GdkSurfaceType surface_type;
 };
 
index 31c3d1db90bd9c39342e9c2b9b30a45029d62f7a..8ac3fcaa0d711d3ffd571cae1d56352af14bd787 100644 (file)
@@ -505,7 +505,6 @@ gdk_surface_new (GdkDisplay     *display,
   gdk_surface_set_frame_clock (surface, frame_clock);
   g_object_unref (frame_clock);
 
-  attributes.wclass = input_only ? GDK_INPUT_ONLY : GDK_INPUT_OUTPUT;
   attributes.surface_type = surface_type;
   attributes.x = x;
   attributes.y = y;